home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / wb613_01.zip / REV.HST < prev    next >
Text File  |  1991-10-23  |  36KB  |  782 lines

  1. /*
  2. ** WINDOWS - Simple but Elegant Window Functions 
  3. **           (Datalight, Lattice, CI86, Microsoft, Borland
  4. **            Zortech, Mix PowerC, Manx AZTEC C, WATCOM)
  5. **
  6. ** Copyright (c) 1984 - 1991 - Philip A. Mongelluzzo
  7. ** All rights reserved.
  8. **
  9. ** Revision History in reverse order:
  10. **
  11. **  The following changes were incorporated in the 10/31/91 release:
  12. **
  13. **              Certified WATCOM 8.5, MIX Power C 2.10
  14. **              Borland TC++ 1.01, Borland TC 2.01, Borland C 2.0
  15. **
  16. **              Dropped formal support of CI86, Datalight,
  17. **              Aztec, and Watcom's EXPRESS C.
  18. **              DO NOT CONFUSE EXPRESS C WITH WATCOM'S OPTIMIZING
  19. **              C COMPILER.
  20. **                      
  21. **              Added wn_getch (get char and atrib from window).
  22. **              (wn_puts)                               (V6.13)
  23. **
  24. **              Added wn_gmltext (get multiline text)
  25. **              (wn_gtext, winboss.h)                   (V6.12)
  26. **
  27. **              Taught wn_input about ^RightArrow and ^LeftArrow.
  28. **              AKA word right and word left.  Ground work for
  29. **              wn_gtxbuf (get text buffer).
  30. **              (wn_input, winboss.h)                   (V6.11)
  31. **
  32. **              Added wn_gssn - get social security number
  33. **              (wn_gssn, wn_frmget, winboss.h)         (V6.10)
  34. **
  35. **              Added wn_clreol - Clear to end of line
  36. **              Added wn_clreow - Clear to end of window
  37. **              (wn_clrfns)                             (V6.09)
  38. **
  39. **              Added wn_gedate - get European date.
  40. **              (winboss.h, wn_frmget, wn_gedate)       (V6.08)
  41. **
  42. **              v_setatr & v_setrev are no longer macros, they are
  43. **              now functions.
  44. **              (winboss.h, wn_bios)                    (V6.07)
  45. **
  46. **              New shadow window type 510 which provides transparrent
  47. **              shadow (dimly lit characters). NOTE: windows with
  48. **              transparrent shadows can be moved freely, however,
  49. **              once they have been covered by another window and
  50. **              are moved the shadow area will loose sync with
  51. **              the underlying text.  This is not a bug it is a
  52. **              restriction.
  53. **              (wn_open, wn_move, wn_activ)            (V6.06)
  54. **
  55. **              Added v_gctype - get cursor type.  Ya all asked for it
  56. **              so ya all got it.
  57. **              (wn_bios)                               (V6.05)
  58. **
  59. **              wn_popup was not handling BACKSPACE correctly. Thanks
  60. **              to Harold Jackson for reporting the problem. 
  61. **              (wn_popup.c, winboss.h)                 (V6.04)
  62. **
  63. **              WN_SBIT's definition changed in TCVLIB.ASM
  64. **              (tcvlib.asm)                            (V6.03)
  65. **
  66. **              "windows.h"   renamed to "winboss.h"
  67. **              "windows.ext" renamed to "winboss.ext"
  68. **              "windows.fns" renamed to "winboss.fns"
  69. **              These changes were made to eliminate the pontential
  70. **              conflict between Borland C++ (2.X) and The Window BOSS.
  71. **              (various)                               (V6.02)        
  72. **
  73. **  The following changes were incorporated in the 01/07/91 release:
  74. **
  75. **  12.26.90 -  wn_hlinit was allocating more memory than was needed.
  76. **              (wn_help.c)                             (V6.01)
  77. **
  78. **              TopSpeed "C" support added.
  79. **              (windows.h, windows.fnt)
  80. **
  81. **              wn_gulong was short 1 byte on the mask it passes 
  82. **              to wn_input.c.  Thanks to the TopSpeed Compiler for
  83. **              finding this.
  84. **
  85. **              Moved v_getchm() to "wn_mouse.c" to eliminate including
  86. **              ANY mouse code from applications that do not call
  87. **              any of the mouse functions.  v_getchm() was previously
  88. **              located in "wn_bios.c".
  89. **
  90. **              Microsoft 6.00A certification.
  91. **
  92. **  12.14.90 -  wn_close was not setting wn->shadow to FALSE when
  93. **              closing shadowed windows.  This was causing wn_activate
  94. **              to do potentially foolish things.       (V6.00)        
  95. **
  96. **  (11.01.90)  ** [Limited distribution release]
  97. **
  98. **  09.14.90 -  Watcom 8.0 Support                      (V5.22)
  99. **
  100. **  08.25.90 -  Added v_getchm() - get character or mouse press.
  101. **              (wn_mouse, wn_bios, windows.c, 
  102. **              windows.ext)                            (V5.21)
  103. **
  104. **  07.25.90 -  Zortech 2.10 Support.                   (V5.20)
  105. **
  106. **  07.23.90 -  Mix Power C 2.00 Support.               (V5.19)
  107. **
  108. **  07.18.90 -  Turbo C++ Support.  Created TCVLIB.ASM to get around
  109. **              Borland's oversight with regard to "CONST".
  110. **              (wn_print.c, tcvlib.asm)                (V5.18)
  111. **
  112. **  The following changes were incorporated in the 07.01.90 release:
  113. **
  114. **  06.16.90 -  Cosmetic and misc changes: (BOSSDEMO.C,
  115. **              MAKELIB.BAT (LC6), include memory model directives
  116. **              for Lattice 6.XX batch files).           
  117. **              Thanks again to Bill Hinkle.            (V5.17)
  118. **
  119. **              QuickC 2.5 Support.                            
  120. **
  121. **              MSC 6.0 Support.  Changed "windows.h" to CAST
  122. **              NULL as an int.
  123. **              (windows.h)                                    
  124. **
  125. **  04.04.90 -  wn_help was taught to use wn_putsa to enforce user
  126. **              specified help screen attributes.  Tip of the hat
  127. **              to Chris Madsen.
  128. **              (wn_help.c)                             (V5.16)
  129. **
  130. **  03.23.90 -  Added "wns_escape". This is set to TRUE by wn_input
  131. **              whenever ESCAPE has terimated the input.  ESCAPE
  132. **              now terminates input for all input field types.
  133. **              (wn_gbool, wn_gdate, wn_double, wn_gfloat, wn_gphone)
  134. **              (wn_gtime, wn_guint, wn_gulong, wn_gint)
  135. **              Thanks Dexter!!                         (V5.15)
  136. **
  137. **  03.12.90 -  Due to popular request, wn_open now range checks
  138. **              the window parameters to make sure that the window
  139. **              will actually fit on the screen.  NULL is returned
  140. **              if not.  This will prevent some cockpit "bad handle"
  141. **              error exits.
  142. **              (wn_open.c)                             (V5.14)
  143. **
  144. **  03.08.90 -  Added wn_hlinit, wn_help, wn_popup, and wn_qpopup.
  145. **              These functions are close clones to the old sample
  146. **              code provided in help.c and popup.c.  HELP.C and
  147. **              POPUP.C will no longer be distributed.
  148. **              (wn_help.c, wn_popup.c, windows.h)
  149. **              (genindex.c)                            (V5.13)
  150. **
  151. **  03.07.90 -  Placed all "externals" in "windows.ext".  This is
  152. **              being done to ease the burden of making changes
  153. **              to both global and external data.  This will also
  154. **              keep all the constants in one place.
  155. **              (windows.c, windows.h, windows.ext)     (V5.12)
  156. **
  157. **  03.06.90 -  HELP Key is now user definable.  The global wns_hkey
  158. **              has been added and defaults to F1.  This global
  159. **              can be set directly of via the wn_shkey() function.
  160. **              (windows.c, wn_init.c)                  (V5.11)
  161. **
  162. **  03.04.90 -  Added wn_stitle (Supertitle).  wn_stitle provides
  163. **              (top, bottom) (centered, left, right) titles!
  164. **              wn_stitle.c                             (V5.10)
  165. **
  166. **  03.03.90 -  Added wn_gatext - get ascii (ANY ascii text).
  167. **              Now you can input graphics characters!
  168. **              Tnx to Werner Schonber for the suggestion.
  169. **              wn_gtext.c                              (V5.09)
  170. **
  171. **  03.01.90 -  Fine tuned overlap detection to improve performance.
  172. **              wn_activ.c                              (V5.08)
  173. **
  174. **  02.25.90 -  Shadow window support. wn_activ.c, wn_close.c,
  175. **              wn_move.c, windows.h, windows.c, wn_open.c 
  176. **                                                      (V5.07) 
  177. **
  178. **  02.24.90 -  Eliminated most of the assembler functions.  This
  179. **              was done to provide better support for the HUGE
  180. **              memory model.
  181. **              (c:{wn_bios, wn_mouse, wn_sup}, *.asm)  (V5.06)
  182. **
  183. **  02.04.90 -  Linked exploding windows to time of day clock.
  184. **              Added wns_gticks() in wn_open.c.
  185. **              nap() in BOSSDEMO now uses wns_gticks.
  186. **              (wn_open.c)                             (V5.05)
  187. **
  188. **  02.03.90 -  wn_sdelspc was not handling requests to delete 
  189. **              trailing and leading spaces from strings that were
  190. **              only spaces!  Tnx es a tip-o-de-hat to Pat Elam,
  191. **              M. G. F. Gilliland, M.D., and Harold Jackson.
  192. **              (wn_string.c)                           (V5.04)
  193. **
  194. **  01.28.90 -  wns_movscr was not allowing for 132 column or
  195. **              wider screens.  It was taught how to allocate memory 
  196. **              for user defined physical screen sizes.  Thanks to the
  197. **              folks at Atomic Energy of Canada LTD. 
  198. **              (wn_sup.c)                              (V5.03)
  199. **
  200. **           -  v_cls() in "wn_bios" was taught about wni_mxrows 
  201. **              and wni_mxcols. 
  202. **              (wn_bios.c)                             (V5.02)
  203. **
  204. **  01.20.90 -  Pulldown code in BOSSDEMO would not work if called
  205. **              twice.  The problem was traced to the "winopn" member
  206. **              of the static structure mainbar.  Setting "mainbar.winopn"
  207. **              to FALSE before "wn_close(mainbar.wpsave)" in "pddemo()"
  208. **              solves the potential problem.  Thanks to Russ Brown for
  209. **              reporting the problem. 
  210. **              (bossdemo.c)                            (V5.01)
  211. **
  212. **              Version conversion table:
  213. **              
  214. **                   Base Release    Base Version
  215. **                      ??.??.86        1.00
  216. **                      ??.??.87        2.00
  217. **                      ??.??.88        3.00
  218. **                      ??.??.89        4.00
  219. **                      ??.??.90        5.00        
  220. **
  221. **  The following changes were incorporated in the 02.15.90 release:
  222. **                         AKA Version 5.00
  223. **
  224. **  01.10.90 -  WCVLIB.ASM created.  This file contains the assembly 
  225. **              language routines for WATCOM 7.0.  Previous versions of
  226. **              WATCOM should use MSVLIB.ASM.  
  227. **
  228. **  01.05.89 -  Physical windows wider than 80 columns were not 
  229. **              working correctly.  Thanks to all who reported this
  230. **              problem. (wn_actic.c, wn_sup.c, windows.c, wn_init.c).
  231. **              The constant "4096" was not removed in wn_savres. It
  232. **              does not impact the physical sceen size logic but does 
  233. **              allow the code of those who have "tinkered" with video 
  234. **              pages to continue to work.
  235. **
  236. **  12.22.89 -  Re-assembled all assembly language routines to insure
  237. **              that wni_mxcols, wni_mxrows, and wni_mxneed were being
  238. **              used correctly.
  239. **
  240. **  11.30.89 -  ZORTECH 2.0 Support.  Please note that ZORLIB version
  241. **              2.0 can not create a usable LWIN.LIB.  Microsoft's LIB
  242. **              works fine and should be used.  ZORTECH has been notified
  243. **              of the problem.
  244. **
  245. **  11.24.89 -  jeesh... One line exploding windows exploded again!
  246. **              This time we got the gremlin!! Tnx to Michael Canfield
  247. **              for suppling the test case.
  248. **
  249. **  (11.15.89)  ** [Limited distribution release]
  250. **
  251. **  10.28.89 -  Modified wn_title to insure ALL compiliers process
  252. **              hex values that are imbedded into the title properly.
  253. **              (e.g. "Hello \xcd There!")
  254. **              Thanks to Don Wahl for pointing out the discrepancy.
  255. **
  256. **  10.25.89 -  It would appear that the PC/PC_CLONE BIOS can not deal 
  257. **              with scrolling single line windows.  wn_insrow() was taught 
  258. **              to erase single line windows and avoid using the 
  259. **              BIOS for this special case.  This problem does not exist
  260. **              on AT or PC/2 class machines.  Thanks to Harold Jackson
  261. **              for reporting the problem.
  262. **
  263. **  10.24.89 -  Eliminated a potential multiple cursor problem with
  264. **              the mouse cursor when a window is being saved/restored
  265. **              with an active mouse.  Tip of the hat to Steve Thatcher
  266. **              of Attachmate.
  267. **
  268. **  10.20.89 -  Corrected a bug in wn_open to allow 1 line exploding 
  269. **              windows to function properly.  Thanks to John F. La Fleur 
  270. **              for reporting the problem.
  271. **
  272. **              wn_puts was not handling borderless windows properly.
  273. **              Thanks to Tim Keane for reporting the problem.
  274. **
  275. **              Lattice Version 6.0 Support
  276. **
  277. **  09.27.89 -  Logic was added to wn_input to insure that user supplied
  278. **              non null editing buffers are the same lenth as their masks!
  279. **              This logic will prevent garbage from appearing when 
  280. **              wn_input is called to peform data entry with a prefilled
  281. **              value in the user buffer (ubuff).
  282. **
  283. **  09.05.89 -  The forms package now treats the ESCcape
  284. **              like most common applications do.  That is to say that it 
  285. **              causes the current operation to cease.  Current 
  286. **              Window BOSS users please note that this feature can
  287. **              be disabled by removing the code in wn_frmget that contains
  288. **              "ESC.001" as part of the comments.
  289. **
  290. **  09.05.89 -  Added 1st character sensitivity to the sample popup menu
  291. **              code. ** NOTE ** -> For menu's that have different 1st
  292. **              character picks.  
  293. **              
  294. **  (08.25.89)  ** [Limited distribution release]
  295. **
  296. **  08.23.89 -  Exploding window opens were failing on SOME 
  297. **              adapters.  Even size exploding windows were
  298. **              failing. Corrected!
  299. **              Thanks to Richard Allen for his assistance.
  300. **
  301. **  The following changes were incorporated in the 07.01.89 release:
  302. **
  303. **  06.17.89 -  Lattice 3.41!! ... The version release race is on!
  304. **
  305. **  05.29.89 -  Mix Power C 1.30 Support.  
  306. **
  307. **  05.25.89 -  Added wn_gutext and wn_gltext.  Get upper case only
  308. **              and lower case only text functions.  Thanks to
  309. **              Charlie Munao for the suggestion.  Improved code 6/6/89.
  310. **
  311. **  05.23.89 -  wn_frmcls now sets the form pointer to the form being
  312. **              closed to NFRM and the individual field pointers to
  313. **              NFLD. This should help those who attempt to dectect
  314. **              if a form/field is active.        
  315. **
  316. **  05.10.89 -  wn_close now sets the window pointer to the window 
  317. **              being closed to WNLPTR.  This should help those who
  318. **              attempt to detect if a window is open.
  319. **
  320. **           -  Moved definition of FAR MEMORY marcos from "wn_sup.c"
  321. **              and "wn_activ.c" to "windows.h".
  322. **
  323. **  05.06.89 -  By popular request... WN_FRMGET now displays both the
  324. **              field prompt and data entry mask for all fields prior
  325. **              to accepting input for the 1st field.  Accomplished by
  326. **              introducing "wni_frmflg" which is used/tested by
  327. **              all the data entry functions, wn_input, and wn_frmget.
  328. **
  329. **  05.05.89 -  Exploding window logic was tweeked to provide smoother
  330. **              explosions.  
  331. **
  332. **  05.04.89 -  Incorporated support for user defined PHYSICAL screen
  333. **              size.  New globals: wni_mxrows, wni_mxcols, wni_mxneed.
  334. **              Globals are defined in "windows.c" and are referenced in
  335. **              "windows.h".  The globals are max rows, max cols, and max
  336. **              memory required to save a *complete* screen image (rows *
  337. **              col * 2).  A new version of wn_init, wn_psinit has be
  338. **              provided to properly set the globals.  Refer to the manual
  339. **              for a complete discussion.  The defaults are 25, 80, and 
  340. **              4000.  Usefull for applications and/or systems that run
  341. **              in 43 line EGA or 50 line VGA mode.  Since The BOSS
  342. **              assumes the screen size to be fixed, wn_psinit must be
  343. **              called before ANY windows are opened.
  344. **
  345. **  04.30.89 -  v_kstat now returns TRUE rather than (-1). This conforms
  346. **              to the constant in "windows.h".  Thanks to Clive Basson
  347. **              at Infostat!
  348. **
  349. **           -  wns_dput (internal routine) was modified to call
  350. **              wns_savres for all writes.  This will improve
  351. **              normal screen output (speed) in most cases.
  352. **
  353. **           -  wns_drow (internal routine) now calls wns_savres 
  354. **              for all writes. This will improve normal screen 
  355. **              output (speed) in most cases.
  356. **
  357. **           -  wn_title now calls wn_dput to write title for 
  358. **              faster title writes.
  359. **
  360. **  04.15.89 -  wn_gulong corrected to use common "%lu" .vs. "%U"
  361. **
  362. **  04.05.89 -  Watcom 7.0 Support.  Tip of the hat to the folks at
  363. **              the Watcom Compiler factory... Once again, they proved
  364. **              that you can release a MAJOR upgrade without breaking
  365. **              anybody's hard work (code).
  366. **
  367. **  04.04.89 -  Lattice 3.4X support. (LC3) Tip of the hat to
  368. **              William Hinkle & Jon Martin (UNISYS) for thier comments,
  369. **              suggestions and support.
  370. **
  371. **           -  Float/Double promotion & demotion caused wn_gfloat 
  372. **              trouble.  Resolved with #if LC3 in wn_gfloat. (LC3)
  373. **
  374. **           -  windows.h was modified to eliminate warnings 
  375. **              about undefined control blocks and include
  376. **              stdlib.h for proper memory allocation
  377. **              prototypes. (LC3)
  378. **
  379. **           -  Fixed LCP.BAT, APMODEL.BAT, and ADMODE.BAT (LC3)
  380. **
  381. **           -  Eliminated *true* unreferenced variables. (LC3)
  382. **
  383. **  03.11.89 -  Quick C Version 2.0 support. 
  384. **
  385. **  03.10.89 -  wn_frmopn/cls was tweeked to be a bit smarter about
  386. **              memory allocation & deallocation.  Tip of the hat
  387. **              to Barry Roomberg & Peter Spreadborough.  This 
  388. **              solves the *very* random "NULL POINTER" message
  389. **              on exit. 
  390. **
  391. **  The following changes were incorporated in the 02.01.89 release:
  392. **
  393. **  02.01.89 -  Mouse support, get double, get unsigned long,
  394. **              get password, left justify string, right justify string
  395. **              center string, delete leading and/or trailing blanks.
  396. **              Files: wn_mouse.c, wn_string.c, wn_gpword.c
  397. **              Files: wn_gdouble.c, wn_gulong.c
  398. **
  399. **  12.26.88 -  wn_restore was modified to allow for those who like to
  400. **              diddle with a "wn_save"d screen image.  This also 
  401. **              corrected a potential problem with restoring saved 
  402. **              images.  Thanks to Mike Blaszczak for reporting the
  403. **              conflict.
  404. **
  405. **  08.01.88 -  added #if __TURBOC__ to windows.c
  406. **
  407. **  The following changes were incorporated in the 08.15.88 release:
  408. **
  409. **  07.24.88 -  wn_puts() was not fixing up color attributes on mono
  410. **              systems - corrected.
  411. **
  412. **  07.10.88 -  AZTEC "C" support.  Thanks to Dexter McCloud for his
  413. **              assistance.
  414. **
  415. **           -  help() has been modified to be compatiable with
  416. **              AZTEC.  Please take note as format of the ".hlp" file
  417. **              has changed. Refer to Intelc.hlp for examples.
  418. **
  419. **  07.03.88 -  WATCOM "C" support.
  420. **
  421. **           -  smartened up wn_frmopn() & wn_frmcls() to avoid
  422. **              possible NULL Pointer Assignments.
  423. **
  424. **           -  cleaned up pointer conversion warnings in wn_activate,
  425. **              wn_close, wn_open, wn_restore, wn_save. defined
  426. **              WNLPTR in windows.h.
  427. **            
  428. **           -  eliminated various warning messages during compilation,
  429. **              Lattice still complains for no valid reason on a few
  430. **              modules.
  431. **
  432. **           -  wns_alloc now use runtime routines allocating memory
  433. **              in the large model, dos routines in small code models.        
  434. **
  435. **           -  wns_alloc allocates and immediately frees all available 
  436. **              memory in the small data memory models before allocating far 
  437. **              memory. This eliminates memory mgmt clashes for some
  438. **              compilers.  
  439. **
  440. **           -  eliminated the need for "peek.c"
  441. **
  442. **  06.29.88 -  Corrected wn_activate to always fixup the cursor
  443. **              display for the activated window.  Thanks to
  444. **              John P. Toscano for reporting the problem.
  445. **
  446. **  06.12.88 -  Functions in wn_activate & wn_sup that call _vidblt
  447. **              and xferdata were taught how to deal with variable
  448. **              offsets from wns_alloc.  
  449. **
  450. **  The following changes were incorporated in the 06.01.88 release:
  451. **
  452. **  06.01.88 -  Incoporated data entry routines!
  453. **
  454. **              Smartened up wn_puts on border detection.
  455. **
  456. **  05.14.88 -  Added: wn_putc  (window put character)
  457. **                     wn_putca (window put character & attribute)
  458. **              Both can be found in the WN_PUTS.C file.          
  459. **
  460. **  05.10.88 -  wn_dmode was now properly sets PAINT & FLASH modes for
  461. **              EGA video adapters - Thanks to Mike Gross from
  462. **              West Germany
  463. **
  464. **  The following changes were incorporated in the 05.06.88 release:
  465. **
  466. **  05.06.88  - Support for MIX Power C added. - Tip of the hat to
  467. **              Bob Lewis for his assistance.
  468. **
  469. **  04.27.88  - The declaration of _stklen was removed from BOSSDEMO.C,
  470. **              this will keep Turbo C happy.
  471. **
  472. **  03.22.88  - wn_activate ability to detect window overlap and
  473. **              handle borderless windows was improved.
  474. **
  475. **  03.22.88  - popup was taught how to handle text on the 0th line.
  476. **
  477. **  03.19.88  - v_spage was loading BH instead of AL. Thanks to
  478. **              Ross Schaach (TRAX, Corp.)
  479. **
  480. **  02.10.88  - wn_gets was modified to insure that charcters being
  481. **              echoed stay within the window borders.  Thanks to
  482. **              Dave McCracken for the suggestion.
  483. **
  484. **  01.14.88  - static declarations of filbuf and showpage were removed
  485. **              in help.c
  486. **
  487. **  The following changes were incorporated in the 11.20.87 release:
  488. **
  489. **  11.13.87  - Microsoft Ver 5.0 & Quick C Support
  490. **
  491. **  09.21.87 - wn_activate was occasionally incorrectly determining
  492. **             window overlap.  Thanks to the folks at Datalight
  493. **             and Marden Marshall for reporting the problem and supplying
  494. **             test cases.
  495. **
  496. **  09.17.87 - wn_init() and wn_exit() were modified to work around
  497. **             Turbo C's inability to handing allocating far memory
  498. **             in the large model.
  499. **
  500. **  09.07.87 - wns_push(), wns_pop(), wn_activate(), wn_move(),
  501. **             wns_image(), and wns_blt() were modified to use a table
  502. **             of global segments, offsets, and pointers.
  503. **             This was done to support the wn_init() and wn_exit()
  504. **             functions.  
  505. **
  506. **             wn_init() and wn_exit() added.  wn_init() must be the
  507. **             first window fucntion called and it must only be called
  508. **             once.  It works in conjucntion with wn_exit() to insure
  509. **             that the screen image on application entry is restored
  510. **             to the "T" on application exit.  wn_exit() must be the 
  511. **             last window function called.  One can not be used without
  512. **             the other.  Both should be used but are neither are
  513. **             required.
  514. **
  515. **  09.05.87 - wn_delrow was calling v_locate with args reversed
  516. **             causing the wrong section of the screen to be cleared
  517. **             on single line borderless windows.  Thanks to Paul
  518. **             Stephenson of Rockwell International for reporting both
  519. **             the problem and the cure.
  520. **
  521. **  09.03.87 - All assembler routines in DLVLIB.ASM now save/restore
  522. **             the SI & DI registers.  Datalight 3.10 and later 
  523. **             specific. The -w and -p command line parameters must
  524. **             be used when compiling The Window BOSS source code
  525. **             under Datalight 3.10 and later.
  526. **
  527. **  The following changes were incorporated in the 08.22.87 release:
  528. **
  529. **  08.10.87 - Added wns_dmode() to set the display mode.  
  530. **             wns_dmode(PAINT) sets the window display mode to paint
  531. **             style, wn_dmode(FLASH) sets the display mode to 
  532. **             flash style.  This function eliminates the need to set
  533. **             wn_sbit and wns_mtflg to produce the desired effects.
  534. **
  535. **  07.17.87 - wn_puts() & wn_putsa() perform simple range checking to
  536. **             insure that the string being displayed is/stays within
  537. **             the target window.
  538. **
  539. **  06.22.87 - Let's "C" specific code removed. Support will continue
  540. **             for previous versions but Mark William's products will
  541. **             not be supported in this or future releases.  This
  542. **             action is being as the result of compiler limitations.
  543. **
  544. **  06.17.87 - wn_activate now does INSTANT screen updates. Ditto
  545. **             for wn_move.  wn_mtype() returns 1 for EGA.  
  546. **             BLAZING screen updates on EGAs.
  547. **
  548. **  06.07.87 - wns_wtext() was incorrectely computing the offset for
  549. **             windows with wn_wrap enabled!
  550. **
  551. **  The following changes were incorporated in the 06.04.87 release:
  552. **
  553. **  06.03.87  - Support for BORLAND Turbo C!!
  554. **
  555. **  The following changes were incorporated in the 05.12.87 release:
  556. **
  557. **  05.12.87  - wns_text was incorrectly compensating for single line
  558. **              borderless windows (Attachmate follow up).
  559. **
  560. **  05.04.87  - EXPLODING windows are now supported!! Simply add 800 to
  561. **              the video page when calling wn_open()!
  562. **
  563. **            - Calls of the form wn_insrow(wn,0) and wn_delrow(wn,0) 
  564. **              caused the border to be klobbered.  wn_insrow() and
  565. **              wn_delrow() were taught about borders.
  566. **
  567. **  03.31.87  - wn_printf [wns_wtext()] was incorrectly displaying graphics 
  568. **              characters. Thanks to Mark MacGee for reporting the problem.
  569. **
  570. **  03.23.87  - Attachmate reported that wn_gets was doing funny things
  571. **              on single line bordered windows on PCs and PC clones but
  572. **              was fine on ATs and AT clones!  It would appear that the
  573. **              PC/PC_CLONE BIOS can not deal with scrolling single line
  574. **              windows.  wn_delrow() was taught to erase single line
  575. **              windows and avoid using the BIOS for this special case.
  576. **
  577. **  03.19.87  - Argh!! Datalight elected to use M_I86 as a predefined
  578. **              equate.  References to M_I86 were changed to 
  579. **              MSCV3 | MSCV4. (Datalight 3.XX)
  580. **
  581. **  The following changes were incorporated in the 03.15.87 release:
  582. **
  583. **  03.01.87  - wn_activate was incorrectly computing the coordinates of
  584. **              unbordered windows.  Thanks to Peter Fletcher for reporting
  585. **              the problem and supplying a solution.
  586. **
  587. **  01.22.87  - wn_dborder() was using the wrong attribute (wn-style,
  588. **              instead of wn->bstyle). Thanks to Peter Partch for
  589. **              reporting the problem and supplying a solution.
  590. **
  591. **  01.06.87  - wn_activate was not walking through the current linked 
  592. **              list of windows. In rare cases this would cause two
  593. **              windows to be considered non-overlapping when in fact
  594. **              they were.  Thanks to Robert Klotz for reporting the
  595. **              problem.
  596. **
  597. **  The following changes were incorporated in the 01.01.87 release:
  598. **
  599. **  12.19.86  - Removed a needless call to wn_err(wn,"wn_printf") in
  600. **              wn_title().
  601. **
  602. **  12.16.86  - Improved centering logic for window titles.
  603. **              Thanks to Steve Liberty for suggesting the change.
  604. **
  605. **  12.14.86  - Incorporated compiler specific equates in windows.h.
  606. **
  607. **  12.13.86  - wns_mtype() returns 0 for mode 3, 2 for mode 0 or 2,
  608. **              and 7 for mode 7. (Internal Use - This change allowed
  609. **              for the prevention of blue on black characters when
  610. **              the video mode is 2 and a color monitor is in use.
  611. **              (wns_fixc & wns_mtype).
  612. **
  613. **            - BASIC support for Mark Williams "Lets C".
  614. **
  615. **            - Tightend free() checks in wn_activate, wn_close, and
  616. **              wn_restore.
  617. **
  618. **  12.12.86  - wn_puts() was not adding the original physical cursor
  619. **              location to the logical cursor location. 
  620. **              Thanks to Marek Glowacki for reporting the problem.
  621. **
  622. **  12.10.86  - Allow v_locate() to position the cursor slightly off
  623. **              the screen.  Previous limit was (24,79) current limit
  624. **              is (25,80) which is just beyond the edge of the screen.
  625. **              This was done to insure that hidden cursors remain out
  626. **              of view.
  627. **
  628. **            - Improved cursor handling when wn_dmaflg = FALSE.
  629. **
  630. **  12.09.86  - Taught wn_activate to honor cursor position of window
  631. **              being activated. This will insure the cursor is always
  632. **              in the right logical and physical position. 
  633. **              More cosmetic enhancement than logic error correction.
  634. **
  635. **  The following changes were incorporated in the 12.01.86 release:
  636. **
  637. **  11.28.86  - Reverse video attribute was not being set correctly
  638. **              on MGAs - corrected.
  639. **
  640. **  11.19.86  - wn_dborder was incorrectly computing the row offset.
  641. **              Thanks to Steve Thatcher for reporting the problem.
  642. **              
  643. **  11.16.86  - Added ".smeth" member to window control block. This 
  644. **              member defines the scrolling method to be used in
  645. **              the window. It can be set to BIOS or DMAS, the default
  646. **              is DMAS.  
  647. **
  648. **            - All routines that reference wn_activate will return
  649. **              NULL if the window could not be activated.  This is 
  650. **              usually due to a lack of free memory.
  651. **
  652. **  The following changes were incorporated in the 11.14.86 release:
  653. **
  654. **  11.13.86  - Closing windows in random order when exiting "sometimes"
  655. **              produced null pointer assignment error messages or 
  656. **              incorrect screen images - corrected.
  657. **
  658. **            - wn_natrib() was not storing the newly defined window
  659. **              attribute in the window control block - corrected.
  660. **
  661. **  11.09.86  - Support for Datalight C added.
  662. **
  663. **  11.02.86  - v_border() added.  Allows color of border area to be
  664. **              set on CGAs with color monitors.
  665. **
  666. **  11.01.86  - wn_fixcsr was not adding the original physical cursor
  667. **              location to the logical cursor location. 
  668. **              Thanks to Bill Harts for reporting the problem.
  669. **
  670. **            - wn_puts was computing the virtual cursor location
  671. **              incorrectly. Thanks to Eric Lundstrom!
  672. **
  673. **            - Logic to dectect null strings was incorporated into
  674. **              _vidblt.  This will prevent 64k worth of trash from
  675. **              being blitted to the video ram.
  676. **
  677. **  10.30.86  - All references to MSC in "windows.h" were changed
  678. **              to M_I86.  This forces "windows.fns" to be included
  679. **              under Microsoft C.  This change was also applied to
  680. **              "windows.c".
  681. **
  682. **  10.26.86  - Full float, long, etc. support for wn_printf in
  683. **              all Lattice versions.  Microsoft 3.XX is the only
  684. **              one in the dark ages.
  685. **
  686. **  10.23.86  - Tip of the hat to Russ Thackson for the improved
  687. **              overlaping window detection technique incorporated
  688. **              in wn_activate().
  689. **
  690. **  The following changes were incorporated in the 10.22.86 release:
  691. **
  692. **  10.22.86  - wn_activate() was causing unnecessary window 
  693. **              thrashing on non-overlapping windows. Corrected.
  694. **
  695. **  The following changes were incorporated in the 10.10.86 release:
  696. **
  697. **  09.27.86  - Tiled windows are now supported! wn_activate() added.
  698. **
  699. **            - wn_gets() was not calling wns_err - corrected.  This
  700. **              was not a bug, just continued support for wild pointer
  701. **              checks.
  702. **
  703. **  09.25.86  - New logic for vidblt(). Fast mode now works on color
  704. **              without causing snow or flicker!!  Video updates now 
  705. **              occur at the fastest possible speed!  The effect of
  706. **              wn_sbit now conforms exactly to the description in the
  707. **              manual.
  708. **
  709. **            - wn_printf (CI86) now has full float support. Thanks
  710. **              to Rob Sullivan for reporting the CI86 problem. Lattice
  711. **              and MSC Version 3.0 are the only hold outs for full
  712. **              wn_print support.  MSC Version 3.0 support will never
  713. **              be incorporated. If you are using MSC Version 3.00 
  714. **              you will have to upgrade to Version 4.XX.  The price
  715. **              of the update is well worth it. Version 4.00 is a
  716. **              work of art! Lattice support will be delayed until
  717. **              Lattice gets around to supporting vsprintf() as
  718. **              defined by the evolving ANSI standard.
  719. **
  720. **  09.17.86  - seperate modules to decrease memory overhead.
  721. **
  722. **            - link list support (wn_open,wn_close,WINDOWPTR struct)
  723. **              This is the ground work for tiled window support.
  724. **
  725. **  09.02.86  - use registers in wns_savres() for speed (MSC).
  726. **
  727. **  The following changes were incorporated in the 08.30.86 release:
  728. **
  729. **  08.28.86  - wn_gets was delclared as (char *) but returning
  730. **              (void).  Corrected to return (char *).
  731. **
  732. **  08.27.86  - wns_wtext() was not correctly handling borderless
  733. **              windows. Corrected.
  734. **
  735. **            - wn_printf() was not correctly handing cases such as:
  736. **              wn_printf(wn,"%s %d %f %d\n", "text", 2, 2.2, 5);
  737. **              The window boss now supports a complete implementation
  738. **              of printf formatting under Microsoft C Version 4.00.
  739. **              All other compilers and versions support an INTEGER only
  740. **              wn_printf.  This will be corrected in a future release.
  741. **
  742. **  08.16.86  - Added wn_gets(). Get string in window with validation.
  743. **
  744. **  The following chages were incorporated in the 06.02.86 release.
  745. **
  746. **  06.02.86  - v_smode was using bh instead of ah. Corrected.
  747. **              Thanks to Rob Rainwater!!
  748. **
  749. **  05.26.86  - Added wn_natrib. Set new window attribute NOW!
  750. **
  751. **  05.25.86  - Corrected a potential problem with a couple of the routies
  752. **              in MSVLIB.ASM. Registers SI & DI were being used but not
  753. **              being saved. This "may" cause spurious probles with "C"
  754. **              programs that use register variables.  Microsoft C 3.0 only.
  755. **
  756. **            - wn_titla was not calling wns_fixc. Corrected.
  757. **
  758. **  05.24.86  - Added wn_titla. write window title with attributes.
  759. **
  760. **  05.10.86  - wn_putsa was not calling wns_fixc.  This caused problems
  761. **              when CGA was in mode bw80 but putsa was called with a
  762. **              valid color atrib.
  763. **
  764. **  The following changes were incororated in the 05.08.86 release.
  765. **
  766. **  05.07.86  - Additions for Microsoft "C" version 3.0
  767. **
  768. **  05.05.86  - wn_printf fix for lattice version 3.0.
  769. **
  770. **  04.25.86  - Added support for handling backspace, delete, & BELL
  771. **              characters correctly (wns_wtext).
  772. **
  773. **              Incorporated v_wtty in vlib.asm.
  774. **
  775. **  Initial Release..
  776. **
  777. **  01.24.86  - Initial release with a bit of a false start thanks to
  778. **              Microsoft's Lib.
  779. **
  780. */
  781.  
  782.